﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using CoiffeurProject.Screens;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Input;
using CoiffeurProject.Utils;
using System.Windows.Media;

namespace CoiffeurProject.UserControls
{
    internal class TransparentButton
    {
        Button button;

        internal TransparentButton(Thickness margin, int row, int colum, int width, int height)
        {
            button = new Button()
            {
                Width = width,
                Height = height,
                Margin = margin,
                HorizontalAlignment = HorizontalAlignment.Left,
                VerticalAlignment = VerticalAlignment.Top,
                Content = new Image()
                    {
                        Source = new BitmapImage(new Uri(ImagesPath.Blank)),
                        Stretch = Stretch.Fill
                    }
            };

            button.SetResourceReference(Button.StyleProperty, "NoChromeButton");

            Grid.SetColumn(button, colum);
            Grid.SetRow(button, row);
        }

        public Button Button { get { return button; } }
    }
}
